aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/pay/[username]
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-04 12:42:42 -0800
committerAdam Soltys <[email protected]>2026-02-11 15:34:19 -0800
commit78c201d8d9d2f3ec07f6ea36201977846e29ccd9 (patch)
tree413d697c2cfa9d3e867c791e161183bad958ed86 /src/routes/(app)/pay/[username]
parent882c3bd3fd01b6001172c61e0d2227d962254c62 (diff)
downloadcoinos-ui-78c201d8d9d2f3ec07f6ea36201977846e29ccd9.tar.gz
coinos-ui-78c201d8d9d2f3ec07f6ea36201977846e29ccd9.zip
homepage design and currency toggling
Diffstat (limited to 'src/routes/(app)/pay/[username]')
-rw-r--r--src/routes/(app)/pay/[username]/[...amount]/+page.svelte8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/routes/(app)/pay/[username]/[...amount]/+page.svelte b/src/routes/(app)/pay/[username]/[...amount]/+page.svelte
index daf5bc08..46f73506 100644
--- a/src/routes/(app)/pay/[username]/[...amount]/+page.svelte
+++ b/src/routes/(app)/pay/[username]/[...amount]/+page.svelte
@@ -6,6 +6,7 @@
import Numpad from "$comp/Numpad.svelte";
import { page } from "$app/stores";
import { f, loc, fail, post, s, sat, sats } from "$lib/utils";
+ import { fiat as fiatStore } from "$lib/store";
import { applyAction, deserialize } from "$app/forms";
let { data, form } = $props();
@@ -69,7 +70,12 @@
type="button"
class="btn !w-auto grow"
onclick={setMax}
- onkeydown={setMax}>Max ⚡️{s(user.balance)}</button
+ onkeydown={setMax}
+ >{#if $fiatStore}
+ Max {f((user.balance * rate) / sats, currency, locale)}
+ {:else}
+ Max ⚡️{s(user.balance)}
+ {/if}</button
>
{/if}